############################################################################
# Core unit tests
############################################################################
set(test UnitTestCore)

include_directories(${CMAKE_SOURCE_DIR}/Tests/UnitTests/utilities)

file(GLOB source_files "*/*.cpp" "../utilities/TestAll.cpp")
file(GLOB include_files "*/*.h")

add_executable(${test} ${source_files} ${include_files})
target_link_libraries(${test} ${BornAgainCore_LIBRARY} gtest)

# add execution of TestCore just after compilation
add_custom_target(${test}_run ALL DEPENDS ${test} COMMAND ${test})
